import org.antlr.v4.runtime.tree.ParseTree;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
public class Main {

	public static void main(String[] args) throws Exception {
		CharStream inputStream = new ANTLRFileStream(args[0]);
		minisyysLexer lexer = new minisyysLexer(inputStream);
		CommonTokenStream tokenStream = new CommonTokenStream(lexer);
		minisyysParser parser = new minisyysParser(tokenStream);
		ParseTree tree = parser.file();
		Visitor visitor = new Visitor();
		visitor.visit(tree);

	}

}
